//
//  TableQuality.m
//  NursingManages
//
//  Created by Zhen Huang on 17/5/27.
//  Copyright © 2017年 huangzhen. All rights reserved.
//

#import "TableQuality.h"
#import "HQcTypeModel.h"
#import "HQc_codeModel.h"
#import "HQc_deptModel.h"
#import "HQc_standardModel.h"
#import <AFNetworking.h>
#import "Networking.h"
#import <MBProgressHUD.h>
#import "InitDbTable.h"
@implementation TableQuality



+ (void)getQuality_typeDataWithType:(NSString *)type
{
//    [Networking receiveDataWithURLString:[NSString stringWithFormat:@"%@/getqcdata",Hurl] method:@"GET" body:nil Block:^(NSData *tempData) {
//        
//        NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:tempData
//                                                            options:NSJSONReadingMutableContainers
//                                                              error:nil];
//    
//        NSLog(@"+%@",dic);
//        if ([type isEqualToString:@"qc_type"]) {
//            [self configureDataWithQuality_Type:dic];
//        }else if ([type isEqualToString:@"qc_standard"])
//        {
//            [self configureDataWithQuality_standard:dic];
//        }else if ([type isEqualToString:@"qc_code"])
//        {
//            [self configureDataWithQuality_code:dic];
//        }else if ([type isEqualToString:@"qc_dept"])
//        {
//            [self configureDataWithQuality_dept:dic];
//        }
//    }];

}
+ (void)configureDataWithQuality_Type:(NSDictionary *)dic

{
//    InitDbTable *manager = [[InitDbTable alloc]init];
//    [InitDbTable sharedFMDBManeger];
//    [manager createQc_typeTable];
//    NSDictionary *dataDic = [dic objectForKey:@"data"];
//    NSArray *qc_typeArray = [dataDic objectForKey:@"qc_type"];
//    [manager deleteQc_type];
//    [manager insertQc_typeArray:qc_typeArray];
}


+ (void)configureDataWithQuality_standard:(NSDictionary *)dic

{
//    InitDbTable *manager = [[InitDbTable alloc]init];
//    [InitDbTable sharedFMDBManeger];
//    [manager createQc_standardTable];
//    NSDictionary *dataDic = [dic objectForKey:@"data"];
//    NSArray *qc_typeArray = [dataDic objectForKey:@"qc_standard"];
//    [manager deleteQc_standard];
//    [manager insertQc_standardArray:qc_typeArray];
}

+ (void)configureDataWithQuality_code:(NSDictionary *)dic

{
//    InitDbTable *manager = [[InitDbTable alloc]init];
//    [InitDbTable sharedFMDBManeger];
//    [manager createQc_codeTable];
//    NSDictionary *dataDic = [dic objectForKey:@"data"];
//    NSArray *qc_typeArray = [dataDic objectForKey:@"qc_code"];
//    [manager deleteQc_code];
//    [manager insertQc_codeArray:qc_typeArray];
}

+ (void)configureDataWithQuality_dept:(NSDictionary *)dic

{
//    InitDbTable *manager = [[InitDbTable alloc]init];
//    [InitDbTable sharedFMDBManeger];
//    [manager createQc_deptTable];
//    NSDictionary *dataDic = [dic objectForKey:@"data"];
//    NSArray *qc_typeArray = [dataDic objectForKey:@"qc_dept"];
//    [manager deleteQc_dept];
//    [manager insertQc_deptArray:qc_typeArray];
}

@end
